package com.example.xm.servive.impl;

import com.example.xm.Entity.Pl2;
import com.example.xm.mapper.Pl2Mapper;
import com.example.xm.servive.Pl2Servive;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class Pl2Serviveimpl implements Pl2Servive {

    @Autowired
    Pl2Mapper pl2Mapper;

    @Override
    public List<Pl2> getAllPl2(Pl2 pl2) {
        return pl2Mapper.getAllPl2(pl2);
    }

    @Override
    public int AddPl2(Pl2 pl2) {
        return pl2Mapper.AddPl2(pl2);
    }
}
